#!/usr/bin/env python
# -*- coding: utf-8 -*-

import rospy

from ros1_protobuf_msg_bridge.msg import Header
from std_msgs.msg import String

def talker():
    rospy.init_node('py_talker', anonymous=False)
    pub = rospy.Publisher('t_pub1', Header, queue_size=10)
    rate = rospy.Rate(10)  # 10hz 
    
    while not rospy.is_shutdown():
        msg = Header()
        msg.pb.frame_id = "1231"

        rospy.loginfo(msg)
        pub.publish(msg)

        rate.sleep()

if __name__ == '__main__':
    try:
        talker()
    except rospy.ROSInterruptException:
        pass
